package com.hennissy.controller;


import com.hennissy.entity.ServiceScope;
import com.hennissy.service.ServiceScopeService;
import com.hennissy.utils.ResultAjax;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cjh
 * @since 2021-06-19
 */
@RestController
@RequestMapping("/serviceScope_api")
public class ServiceScopeController {

    @Autowired
    private ServiceScopeService serviceScopeService;

    @GetMapping("/list")
    public ResultAjax list(){

        List<ServiceScope> serviceScopes = serviceScopeService.list();
        return ResultAjax.ok(200,"ok", serviceScopes, serviceScopes.size());
    }

}

